﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DynamicForm.Models.Metadata
{
    [Serializable]
    public class MetaTableField
    {
        public string Name { get; set; }
        public FieldDataType DataType { get; set; }
        public ushort FieldLength { get; set; }
        public bool IsAutogen { get; set; }
        public string Options { get; set; }
    }

    [Serializable]
    public class MetaFormField : MetaTableField
    {
        public List<MetaLanguage> Labels { get; set; }
        public object FieldValue { get; set; }
        public List<ScriptType> ClientScripts { get; set; }
    }

    [Serializable]
    public class MetaLanguage
    {
        public string LangID { get; set; }
        public string LabelText { get; set; }
    }
}